import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 查询用户列表
export function listConsumer(data) {
  return request({
    url: '/system/consumer/list',
    method: 'post',
    data: data
  })
}

// 修改客户信息
export function updateConsumer(data) {
  return request({
    url: '/system/consumer/update',
    method: 'put',
    data: data
  })
}

// 新增客户
export function addConsumer(data) {
  return request({
    url: '/system/consumer/add',
    method: 'post',
    data: data
  })
}
//删除客户
export function detConsumer(data) {
  return request({
    url: '/system/consumer/det',
    method: 'post',
    data: data
  })
}
